package br.com.mayco.util;

/**
 * @author Mayco Lucian
 * @since 25/02/2013
 * @version 1.0.0
 */
public class CheckPassword {

    public Integer checkPassword(String password) {
        return checkSize(password) + hasSimbols(password) + hasNumbers(password) + hasLetters(password);
    }

    private Integer checkSize(String password) {
        int size = password.length();
        if (size <= 6) {
            return 0;
        }
        if (size <= 8) {
            return 1;
        }
        if (size >= 12) {
            return 2;
        }
        return 3;
    }

    private Integer hasSimbols(String password) {
        return 1;
    }

    private Integer hasNumbers(String password) {
        return 1;
    }

    private Integer hasLetters(String password) {
        return 1;
    }
}
